#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main()
{
	int arr[5] = {1,2,3,4,5};
	int len = sizeof(arr) / sizeof(int);
	srand(time(NULL));
	for (int i = 0; i < len; i++) 
	{
		int num1 = rand() % len;
		int temp = arr[i];
		arr[i] = arr[num1];
		arr[num1] = temp;
	}
	for (int i = 0; i < len; i++)
	{
		printf("%d\n",arr[i]);
	}
	return 0;
}